package com.miwzn.comm.constant;

/**
 * @Auther: wzn
 * @Date: 2018/6/4 09:23
 * @Description:
 */
public enum ResultCodeEnum {
    SUCCESS("success", 200),//成功
    FAIL("fail", 400),//失败
    UNAUTHORIZED("unauthorized", 401),//未认证（签名错误）
    NOT_FOUND("not found", 404),//接口不存在
    INTERNAL_SERVER_ERROR("internal server error", 500);//服务器异常

    public String name;
    public int code;

    ResultCodeEnum(String name, int code) {
        this.name = name;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
